package utils;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import org.apache.log4j.Logger;

//import schedule.RevisaProtestosThreads;

public class StartupServlet extends HttpServlet {

	
	//RevisaProtestosThreads getProtestos = new  RevisaProtestosThreads();
	
	
	private static Logger log = Logger.getLogger(StartupServlet.class);
	
    public void init() throws ServletException {
        try {
        	
            super.init();      
            
            log.info("Se arranca servicios consulta de Protestos");
            System.out.println("Se arranca servicios consulta de Protestos");
             // getProtestos.start();
            log.info("Fin arranque servicios consulta de Protestos");
            System.out.println("Se arranca servicios consulta de Protestos");
            
        } catch (ServletException ex) {
            ex.printStackTrace();
        }
    }
    
    public void destroy() {
        // Close all connections in the connection pool
        //	ConnectionBean.destroyPool();
    	//getGeneracion.interrupt();
    }
    
    
   
}
